const KoaRouter = require('@koa/router')
const searchController = require('../controller/search.controller')
const { verifyAuthorization } = require('../middleware/login.middleware')

const searchRouter = new KoaRouter({ prefix: '/search' })

searchRouter.get('/', verifyAuthorization , searchController.search)


module.exports = searchRouter